package me.fanchaoo.web.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RegisterRequest {

    @NotBlank
    @Length(max = 50)
    private String username;

    @NotBlank
    @Length(max = 10)
    private String code;

    @NotBlank
    @Length(max = 50)
    private String password;

    @NotBlank
    @Length(max = 150)
    private String randomKey;

//    @NotBlank
//    @Length(max = 50)
    private String name;

}
